#ifndef FORMPRICESELECTWIDGET_H
#define FORMPRICESELECTWIDGET_H

#include <QWidget>
#include <QDialog>
#include <QCheckBox>
#include <QLineEdit>
#include <QDomElement>

#include "reservedwords.h"

namespace Ui {
    class FormPriceSelectWidget;
}

class FormPriceSelectWidget : public QWidget {
    Q_OBJECT
public:
    explicit FormPriceSelectWidget(QWidget *parent = 0);
    ~FormPriceSelectWidget();
    QLineEdit *txtPrice;
    QCheckBox *chkSacrifise;
    QCheckBox *chkTap;
    QCheckBox *chkOnEnter;
    static QString showSelectDialog(QStringList);

    void setCheckBoxesVisible(bool);

protected:
    void changeEvent(QEvent *e);

private:
    Ui::FormPriceSelectWidget *ui;
    QDomElement appendColorToPriceLine(QString);
    QDomElement enableProperty(QString, bool);

public slots:
    void btnWhiteClicked();
    void btnBlackClicked();
    void btnBlueClicked();
    void btnRedClicked();
    void btnGreenClicked();
    void btnXClicked();
    void btnNoneClicked();
    void chkTapClicked(bool);
    void chkOnEnterClicked(bool);
    void chkSacrifiseClicked(bool);

};

#endif // FORMPRICESELECTWIDGET_H
